package svc

import (
	"B/Api/internal/config"
	"B/Rpc/shopsclient"
	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config   config.Config
	ShopsRpc shopsclient.Shops
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:   c,
		ShopsRpc: shopsclient.NewShops(zrpc.MustNewClient(c.ShopsRpc)),
	}
}
